package com.cd;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.EnableAspectJAutoProxy;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.web.bind.annotation.RestController;

@SpringBootApplication(
        scanBasePackages = {
                "com.cd.*"//,
                //"com.cd.quartz.*"
        })
//@MapperScan("com.cd.system.mapper")//mybatis used modify yml scan named mybatis:mapper-locations:
//@MapperScan({"com.cd.system.mapper","com.cd.quartz.mapper"})
@MapperScan("com.cd.*.mapper")
@RestController
//@EnableDiscoveryClient //cloud以后的服务发现功能
@EnableAspectJAutoProxy(exposeProxy = true, proxyTargetClass = true)//普通方法交由代理类代理
//@EntityScan("com.cd.server.jpa.entity")//扫描实体 配置了@SpringBootApplication可能可以不配
@EnableAsync//开启异步
//@EnableDiscoveryClient//开启注册发现
public class LqqApplication {


    public static void main(String[] args) {
        SpringApplication.run(LqqApplication.class);
        //可以返回上面的 run 然后run.getbean(DefaultSecurityFilter.class)
        //同样利用上面返回的run 输出容器中所有bean
        //Arrays.stream(run.getBeanDefinitionNames()).forEach(System.out::println);
        //Font Name: Rounded
        //初始化方法在ApplicationRunnerImpl中
    }

}
